package com.tsll.entity;

import java.io.Serializable;

/**
 * 
 * @TableName user
 */
public class User implements Serializable {
//    用户数量
    private Integer usershu;

    public Integer getUsershu() {
        return usershu;
    }

    public void setUsershu(Integer usershu) {
        this.usershu = usershu;
    }

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户账号
     */
    private String userAccount;

    /**
     * 用户密码
     */
    private String userPwd;

    /**
     * 用户昵称
     */
    private String userNick;

    /**
     * 用户头像
     */
    private String userHead;

    /**
     * 用户性别
     */
    private String userSex;

    /**
     * 用户地址
     */
    private String userAddress;

    /**
     * 身份证号
     */
    private String userIdcard;

    /**
     * 手机号
     */
    private String userPhone;

    /**
     * 用户余额
     */
    private Double userBalance;

    private Integer score;

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 用户账号
     */
    public String getUserAccount() {
        return userAccount;
    }

    /**
     * 用户账号
     */
    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    /**
     * 用户密码
     */
    public String getUserPwd() {
        return userPwd;
    }

    /**
     * 用户密码
     */
    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    /**
     * 用户昵称
     */
    public String getUserNick() {
        return userNick;
    }

    /**
     * 用户昵称
     */
    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    /**
     * 用户头像
     */
    public String getUserHead() {
        return userHead;
    }

    /**
     * 用户头像
     */
    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    /**
     * 用户性别
     */
    public String getUserSex() {
        return userSex;
    }

    /**
     * 用户性别
     */
    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    /**
     * 用户地址
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * 用户地址
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * 身份证号
     */
    public String getUserIdcard() {
        return userIdcard;
    }

    /**
     * 身份证号
     */
    public void setUserIdcard(String userIdcard) {
        this.userIdcard = userIdcard;
    }

    /**
     * 手机号
     */
    public String getUserPhone() {
        return userPhone;
    }



    /**
     * 手机号
     */
    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    /**
     * 用户余额
     */
    public Double getUserBalance() {
        return userBalance;
    }

    /**
     * 用户余额
     */
    public void setUserBalance(Double userBalance) {
        this.userBalance = userBalance;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserAccount() == null ? other.getUserAccount() == null : this.getUserAccount().equals(other.getUserAccount()))
            && (this.getUserPwd() == null ? other.getUserPwd() == null : this.getUserPwd().equals(other.getUserPwd()))
            && (this.getUserNick() == null ? other.getUserNick() == null : this.getUserNick().equals(other.getUserNick()))
            && (this.getUserHead() == null ? other.getUserHead() == null : this.getUserHead().equals(other.getUserHead()))
            && (this.getUserSex() == null ? other.getUserSex() == null : this.getUserSex().equals(other.getUserSex()))
            && (this.getUserAddress() == null ? other.getUserAddress() == null : this.getUserAddress().equals(other.getUserAddress()))
            && (this.getUserIdcard() == null ? other.getUserIdcard() == null : this.getUserIdcard().equals(other.getUserIdcard()))
            && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))
            && (this.getUserBalance() == null ? other.getUserBalance() == null : this.getUserBalance().equals(other.getUserBalance()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserAccount() == null) ? 0 : getUserAccount().hashCode());
        result = prime * result + ((getUserPwd() == null) ? 0 : getUserPwd().hashCode());
        result = prime * result + ((getUserNick() == null) ? 0 : getUserNick().hashCode());
        result = prime * result + ((getUserHead() == null) ? 0 : getUserHead().hashCode());
        result = prime * result + ((getUserSex() == null) ? 0 : getUserSex().hashCode());
        result = prime * result + ((getUserAddress() == null) ? 0 : getUserAddress().hashCode());
        result = prime * result + ((getUserIdcard() == null) ? 0 : getUserIdcard().hashCode());
        result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode());
        result = prime * result + ((getUserBalance() == null) ? 0 : getUserBalance().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userAccount=").append(userAccount);
        sb.append(", userPwd=").append(userPwd);
        sb.append(", userNick=").append(userNick);
        sb.append(", userHead=").append(userHead);
        sb.append(", userSex=").append(userSex);
        sb.append(", userAddress=").append(userAddress);
        sb.append(", userIdcard=").append(userIdcard);
        sb.append(", userPhone=").append(userPhone);
        sb.append(", userBalance=").append(userBalance);
        sb.append(", score=").append(score);
        sb.append(", serialVersionUID=").append(serialVersionUID);

        sb.append("]");
        return sb.toString();
    }
}